package com.spring.starter.aspectJ;


/**
 * @author tonywang
 * @date 6/15/2018
 */
public aspect CriticAspect {
    public CriticAspect() {
    }
    pointcut performance() : execution(* com.spring.starter.aspectJ.Performance.perform(..));
    after(): performance() {
        System.out.println(criticismEngine.getCriticism());
    }
    private CriticismEngine criticismEngine;

    public void setCriticismEngine(CriticismEngine criticismEngine) {
        this.criticismEngine = new CriticismEngineImpl();
    }
}
